opencpn:developer_manual:developer_guide:compiling_linux:building_on_armhf_linux_-_armbian_-_orange_pi

Sorry, but the CAPTCHA wasn't answered correctly. Maybe you're not human at all?

Building on armhf linux - Armbian - Orange Pi

Armbian.com offers opensource “Linux for arm” kernels with Debian and Ubuntu distros. They have come from Rev 5.05 in Apr, 2016 to 5.38 now.

These instructions are valid for Orange Pi PC Plus(H3 armhf) and OPi PC 2(H5 arm64), Armbian 5.75 Ubuntu 18.04 Bionic, and Debian 9 Stretch and OpenCPN 5.0.0 Mar, 2019.
(I hate instructions that are not dated!)

=== Update the system software ===

orangepipc$ sudo apt update
orangepipc$ sudo apt upgrade

Some modules require a lot of memory to compile and the system comes with only 128MB so I plugged in a thumb-drive with a linux 1.2GB swap partition and

orangepipc$ sudo mkswap -f /dev/sda5
orangepipc$ sudo swapon /dev/sda5

As a normal user get the source code

git clone https://github.com/OpenCPN/OpenCPN.git
cd OpenCPN
mkdir build
cd build
cmake -DCFLAGS="-O2 -march=native" -DBUNDLE_DOCS=OFF -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=LOW ../
make package

Install some charts and test in the normal way.

Follow the standard Linux build instructions for Ubuntu/Debian:

cmake -DCFLAGS="-O2 -march=native" -DBUNDLE_DOCS=OFF -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=LOW ../
make package

Alternative to install GSHHS and Tide Data

cd ~/opencpn/build
cmake -DOCPN_BUNDLE_TCDATA=ON -DOCPN_BUNDLE_GSHHS=CRUDE ..
sudo make install

Install some charts and test in the normal way.

  • opencpn/developer_manual/developer_guide/compiling_linux/building_on_armhf_linux_-_armbian_-_orange_pi.txt
  • Last modified: 2021/04/27 13:24
  • by rgleason